home *** CD-ROM | disk | FTP | other *** search
-
- (
- ( Interface for rpl/spiral.rpl
- (
-
- ?& SPIRAL_GUI NOT ?IF
- 1 CONSTANT SPIRAL_GUI
-
- "ui.rpl" LOAD
- "locks.rpl" LOAD
-
- ( Variables
-
- VARIABLE spiaWindow
- VARIABLE spiaPartCnt
- VARIABLE spiaPartSize
- VARIABLE spiaRingCnt
- VARIABLE spiaPlanetSize
- VARIABLE spiaWireFrames
- VARIABLE spiaString
- VARIABLE spiaText
-
- 160 CONSTANT spiiLeft
- 160 CONSTANT spiiWidth
- 12 CONSTANT spiiHeight
-
- : spicbApply
- VARIABLE iPartCnt
- 100 STRING sPartSize
-
- ( fetch attributes from gadgets
- UI_Done iPartCnt UISL_Level spiaPartCnt FETCH UI_GETATTRS
- UI_Done sPartSize UIST_String spiaPartSize FETCH UI_GETATTRS
-
- ( push parameters on stack
- iPartCnt FETCH
- sPartSize ATOF
-
- ( and call the actual program
- "rpl/spiral.rpl" LOAD
-
- REFRESH
- ;
-
- : spicbHelp
-
- ;
-
- : spicbCancel
- spiaWindow FETCH UI_DELETE
- FALSE spiaWindow STORE
- ;
-
- : spicbWindow
- PARAM
- VARIABLE iMouseY
- VARIABLE iMouseX
- VARIABLE iEvent
- ENDPARAM
-
- UIWM_Close iEvent FETCH = IF
- spiaWindow FETCH UI_DELETE
- FALSE spiaWindow STORE
- ENDIF
- ;
-
- ?ENDIF ( SPIRAL_GUI
-
- (
- ( Create display objects
- (
-
- spiaWindow FETCH
- ?IF
- "Understood" "Interface already opened" GET_KEY DROP
- ?ELSE
- UI_Done & spicbWindow 0 0 400 100 "Spiral Tool" UI_WINDOW spiaWindow STORE
-
- UI_Done
- "0.01" UIST_String
- spiaWindow FETCH NULL spiiLeft 20 spiiWidth spiiHeight "Size for Particles" UI_STRING spiaPartSize STORE
-
- UI_Done
- 1 UISL_Min
- 1000 UISL_Max
- 20 UISL_Level
- spiaWindow FETCH NULL spiiLeft 35 spiiWidth spiiHeight "Number of Spheres" UI_SLIDER spiaPartCnt STORE
-
- UI_Done
- "Define parameters for spiral" UITX_Text
- 1 UITX_Border
- spiaWindow FETCH NULL 60 60 320 spiiHeight "Info" UI_TEXT spiaText STORE
-
- UI_Done spiaWindow FETCH & spicbApply 20 80 100 spiiHeight "Apply" UI_BUTTON DROP
- UI_Done spiaWindow FETCH & spicbHelp 140 80 100 spiiHeight "Help" UI_BUTTON DROP
- UI_Done spiaWindow FETCH & spicbCancel 280 80 100 spiiHeight "Cancel" UI_BUTTON DROP
-
- ( realize gadgets
-
- spiaWindow FETCH UI_REALIZE
- ?ENDIF
-